.class final Lcom/greystripe/sdk/aa;
.super Landroid/webkit/WebView;


# static fields
.field private static d:Z


# instance fields
.field private final a:I

.field private final b:I

.field private c:Ljava/lang/String;

.field private e:Lcom/greystripe/sdk/ag;

.field private f:Ljava/util/Timer;

.field private g:Ljava/util/Timer;

.field private h:Z

.field private i:Ljava/util/LinkedList;

.field private j:Z

.field private k:Z

.field private l:Landroid/webkit/WebChromeClient;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x1

    sput-boolean v0, Lcom/greystripe/sdk/aa;->d:Z

    return-void
.end method

.method protected constructor <init>(Landroid/content/Context;Lcom/greystripe/sdk/ag;)V
    .locals 5

    const/4 v2, -0x1

    const/4 v1, 0x1

    const/4 v4, 0x0

    invoke-direct {p0, p1}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    const/16 v0, 0x7530

    iput v0, p0, Lcom/greystripe/sdk/aa;->a:I

    const/16 v0, 0x12c

    iput v0, p0, Lcom/greystripe/sdk/aa;->b:I

    iput-boolean v4, p0, Lcom/greystripe/sdk/aa;->h:Z

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/greystripe/sdk/aa;->i:Ljava/util/LinkedList;

    iput-boolean v1, p0, Lcom/greystripe/sdk/aa;->j:Z

    iput-object p2, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    invoke-virtual {p0, v4}, Lcom/greystripe/sdk/aa;->setBackgroundColor(I)V

    new-instance v0, Landroid/webkit/WebChromeClient;

    invoke-direct {v0}, Landroid/webkit/WebChromeClient;-><init>()V

    iput-object v0, p0, Lcom/greystripe/sdk/aa;->l:Landroid/webkit/WebChromeClient;

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->l:Landroid/webkit/WebChromeClient;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    new-instance v0, Lcom/greystripe/sdk/af;

    invoke-direct {v0, p0, v4}, Lcom/greystripe/sdk/af;-><init>(Lcom/greystripe/sdk/aa;B)V

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    invoke-virtual {p0, v4}, Lcom/greystripe/sdk/aa;->setHorizontalScrollBarEnabled(Z)V

    invoke-virtual {p0, v4}, Lcom/greystripe/sdk/aa;->setVerticalScrollBarEnabled(Z)V

    invoke-virtual {p0, v4}, Lcom/greystripe/sdk/aa;->setScrollContainer(Z)V

    invoke-virtual {p0, v1}, Lcom/greystripe/sdk/aa;->setEnabled(Z)V

    invoke-virtual {p0, v1}, Lcom/greystripe/sdk/aa;->setClickable(Z)V

    invoke-virtual {p0, v4, v4, v4, v4}, Lcom/greystripe/sdk/aa;->setPadding(IIII)V

    new-instance v0, Landroid/view/ViewGroup$LayoutParams;

    invoke-direct {v0, v2, v2}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    invoke-virtual {p0}, Lcom/greystripe/sdk/aa;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setLightTouchEnabled(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setLoadsImagesAutomatically(Z)V

    invoke-virtual {v0, v4}, Landroid/webkit/WebSettings;->setJavaScriptCanOpenWindowsAutomatically(Z)V

    invoke-virtual {v0, v4}, Landroid/webkit/WebSettings;->setSupportMultipleWindows(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setPluginsEnabled(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    invoke-virtual {v0, v4}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setDatabaseEnabled(Z)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    sget-boolean v0, Lcom/greystripe/sdk/aa;->d:Z

    if-eqz v0, :cond_0

    const-string v0, "First webview loaded."

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    invoke-static {p1}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeExpiredCookie()V

    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    invoke-static {}, Lcom/greystripe/sdk/bj;->c()Ljava/lang/String;

    move-result-object v1

    const-string v2, "http://"

    invoke-static {}, Lcom/greystripe/sdk/bj;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    add-int/2addr v2, v3

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const/16 v2, 0x2f

    invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(I)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "GS_Session=0"

    invoke-virtual {v0, v1, v2}, Landroid/webkit/CookieManager;->setCookie(Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {}, Landroid/webkit/CookieSyncManager;->getInstance()Landroid/webkit/CookieSyncManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/CookieSyncManager;->sync()V

    sput-boolean v4, Lcom/greystripe/sdk/aa;->d:Z

    :cond_0
    invoke-static {}, Lcom/greystripe/sdk/bj;->a()Lcom/greystripe/sdk/bl;

    move-result-object v0

    const-string v1, "Preferences"

    invoke-virtual {p0, v0, v1}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {}, Lcom/greystripe/sdk/bd;->a()Lcom/greystripe/sdk/be;

    move-result-object v0

    const-string v1, "SdkLog"

    invoke-virtual {p0, v0, v1}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v0, Lcom/greystripe/sdk/ah;

    invoke-direct {v0, p0, v4}, Lcom/greystripe/sdk/ah;-><init>(Lcom/greystripe/sdk/aa;B)V

    const-string v1, "ResponseStatus"

    invoke-virtual {p0, v0, v1}, Lcom/greystripe/sdk/aa;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/greystripe/sdk/aa;)Lcom/greystripe/sdk/ag;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    return-object v0
.end method

.method static synthetic a(Lcom/greystripe/sdk/aa;Ljava/lang/String;)V
    .locals 0

    invoke-super {p0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method private declared-synchronized b()V
    .locals 1

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_0
    iput-boolean v0, p0, Lcom/greystripe/sdk/aa;->h:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic b(Lcom/greystripe/sdk/aa;)Z
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/aa;->k:Z

    return v0
.end method

.method private declared-synchronized c()V
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lcom/greystripe/sdk/aa;->i:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    :goto_0
    if-eqz v0, :cond_0

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->loadUrl(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->i:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/aa;->h:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic c(Lcom/greystripe/sdk/aa;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/aa;->b()V

    return-void
.end method

.method static synthetic d(Lcom/greystripe/sdk/aa;)V
    .locals 0

    invoke-direct {p0}, Lcom/greystripe/sdk/aa;->c()V

    return-void
.end method

.method static synthetic e(Lcom/greystripe/sdk/aa;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/greystripe/sdk/aa;->k:Z

    return v0
.end method

.method static synthetic f(Lcom/greystripe/sdk/aa;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->c:Ljava/lang/String;

    return-object v0
.end method


# virtual methods
.method protected final a()V
    .locals 2

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->g:Ljava/util/Timer;

    if-eqz v0, :cond_0

    const-string v0, "CANCELLING LOAD TIMER"

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->g:Ljava/util/Timer;

    invoke-virtual {v0}, Ljava/util/Timer;->cancel()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/greystripe/sdk/aa;->g:Ljava/util/Timer;

    :cond_0
    return-void
.end method

.method public final a(II)V
    .locals 5

    const/4 v2, 0x0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "onResponseStatusKnown("

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    packed-switch p1, :pswitch_data_0

    const-string v0, "Ad Response Status: Server Error"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    sget-object v1, Lcom/greystripe/sdk/GSAdErrorCode;->SERVER_ERROR:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-interface {v0, v1}, Lcom/greystripe/sdk/ag;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    :goto_0
    if-lez p2, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Starting to throttle with time "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    invoke-interface {v0}, Lcom/greystripe/sdk/ag;->c()V

    mul-int/lit16 v0, p2, 0x3e8

    new-instance v1, Ljava/util/Timer;

    invoke-direct {v1}, Ljava/util/Timer;-><init>()V

    iput-object v1, p0, Lcom/greystripe/sdk/aa;->f:Ljava/util/Timer;

    iget-object v1, p0, Lcom/greystripe/sdk/aa;->f:Ljava/util/Timer;

    new-instance v2, Lcom/greystripe/sdk/ac;

    invoke-direct {v2, p0}, Lcom/greystripe/sdk/ac;-><init>(Lcom/greystripe/sdk/aa;)V

    int-to-long v3, v0

    invoke-virtual {v1, v2, v3, v4}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    :cond_0
    return-void

    :pswitch_0
    const-string v0, "Ad Response Status: No Status Code"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    sget-object v1, Lcom/greystripe/sdk/GSAdErrorCode;->SERVER_ERROR:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-interface {v0, v1}, Lcom/greystripe/sdk/ag;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    const/16 p2, 0x12c

    goto :goto_0

    :pswitch_1
    const-string v0, "Ad Response Status: Success"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    invoke-interface {v0}, Lcom/greystripe/sdk/ag;->a()V

    goto :goto_0

    :pswitch_2
    const-string v0, "Ad Response Status: Blank Ad"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    sget-object v1, Lcom/greystripe/sdk/GSAdErrorCode;->NO_AD:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-interface {v0, v1}, Lcom/greystripe/sdk/ag;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    goto :goto_0

    :pswitch_3
    const-string v0, "Ad Response Status: Invalid Application Identifier"

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    sget-object v1, Lcom/greystripe/sdk/GSAdErrorCode;->INVALID_APPLICATION_IDENTIFIER:Lcom/greystripe/sdk/GSAdErrorCode;

    invoke-interface {v0, v1}, Lcom/greystripe/sdk/ag;->a(Lcom/greystripe/sdk/GSAdErrorCode;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public final a(Ljava/lang/String;)V
    .locals 5

    const/4 v4, 0x0

    invoke-static {}, Lcom/greystripe/sdk/bj;->e()J

    move-result-wide v0

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "STARTING LOAD TIMER with time "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-array v3, v4, [Ljava/lang/Object;

    invoke-static {v2, v3}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iput-boolean v4, p0, Lcom/greystripe/sdk/aa;->k:Z

    new-instance v2, Ljava/util/Timer;

    invoke-direct {v2}, Ljava/util/Timer;-><init>()V

    iput-object v2, p0, Lcom/greystripe/sdk/aa;->g:Ljava/util/Timer;

    iget-object v2, p0, Lcom/greystripe/sdk/aa;->g:Ljava/util/Timer;

    new-instance v3, Lcom/greystripe/sdk/ad;

    invoke-direct {v3, p0}, Lcom/greystripe/sdk/ad;-><init>(Lcom/greystripe/sdk/aa;)V

    invoke-virtual {v2, v3, v0, v1}, Ljava/util/Timer;->schedule(Ljava/util/TimerTask;J)V

    const-string v0, "?"

    invoke-virtual {p1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "\\?"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "?z="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    const/16 v2, 0x26

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Ljava/lang/String;->replaceFirst(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    iput-object v0, p0, Lcom/greystripe/sdk/aa;->c:Ljava/lang/String;

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->loadUrl(Ljava/lang/String;)V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/greystripe/sdk/aa;->j:Z

    return-void

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "?z="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public final declared-synchronized b(Ljava/lang/String;)V
    .locals 3

    monitor-enter p0

    :try_start_0
    const-string v0, "javascript:try{%s}catch(e){}"

    const/4 v1, 0x1

    new-array v1, v1, [Ljava/lang/Object;

    const/4 v2, 0x0

    aput-object p1, v1, v2

    invoke-static {v0, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iget-boolean v1, p0, Lcom/greystripe/sdk/aa;->h:Z

    if-eqz v1, :cond_0

    invoke-virtual {p0, v0}, Lcom/greystripe/sdk/aa;->loadUrl(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :goto_0
    monitor-exit p0

    return-void

    :cond_0
    :try_start_1
    iget-object v1, p0, Lcom/greystripe/sdk/aa;->i:Ljava/util/LinkedList;

    invoke-virtual {v1, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final loadUrl(Ljava/lang/String;)V
    .locals 2

    invoke-static {}, Lcom/greystripe/sdk/bd;->b()Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "loadUrl(\""

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "\")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    :cond_0
    new-instance v0, Lcom/greystripe/sdk/ab;

    invoke-direct {v0, p0, p1}, Lcom/greystripe/sdk/ab;-><init>(Lcom/greystripe/sdk/aa;Ljava/lang/String;)V

    invoke-static {v0}, Lcom/greystripe/sdk/bm;->a(Ljava/lang/Runnable;)Z

    return-void
.end method

.method public final onDraw(Landroid/graphics/Canvas;)V
    .locals 3

    const/4 v2, 0x0

    invoke-super {p0, p1}, Landroid/webkit/WebView;->onDraw(Landroid/graphics/Canvas;)V

    iget-boolean v0, p0, Lcom/greystripe/sdk/aa;->j:Z

    if-eqz v0, :cond_0

    iput-boolean v2, p0, Lcom/greystripe/sdk/aa;->j:Z

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "onDraw() called in webview: "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcom/greystripe/sdk/aa;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/greystripe/sdk/bd;->b(Ljava/lang/String;[Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/greystripe/sdk/aa;->e:Lcom/greystripe/sdk/ag;

    invoke-interface {v0}, Lcom/greystripe/sdk/ag;->b()V

    :cond_0
    return-void
.end method

.method public final post(Ljava/lang/Runnable;)Z
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-super {p0, p1}, Landroid/webkit/WebView;->post(Ljava/lang/Runnable;)Z

    move-result v0

    return v0
.end method
